import request from '@/router/axios';

export const getDataHasImportedTaskData = () => {
  return request({
    url: '/api/import/getDataHasImportedTaskData',
    method: 'get',
    params: {}
  })
}

export const getCanImportTaskData = () => {
  return request({
    url: '/api/import/getCanImportTaskData',
    method: 'get',
    params: {}
  })
}

export const getRunningTaskStatus = () => {
  return request({
    url: '/api/import/getRunningTaskStatus',
    method: 'get',
    params: {}
  })
}

export const startImport = (importDates) => {
  return request({
    url: '/api/import/startImport',
    method: 'post',
    data: importDates
  })
}

export const deleteTaskDataFile = (date) => {
  return request({
    url: '/api/import/deleteTaskDataFile',
    method: 'post',
    params: {date: date}
  })
}

